home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / olrdrs / qwkndt1a.zip / WAFFLE.SCR < prev    next >
Text File  |  1992-11-06  |  991b  |  41 lines

  1. # Sample script for logging on to a Waffle board running Wafmail.
  2. # Replace YOURNAME and YOURPASS with your username and password.
  3. # This is only a model, and will probably need to be modified to
  4. # some degree.
  5. #
  6. expect "EW:"
  7. send "YOURNAME\r"
  8. expect "ord:"
  9. send "YOURPASS\r"
  10. # Wait for main prompt ("Go, man! >" on this board).
  11. expect "man! >"
  12. # Run Wafmail
  13. send "wafmail\r"
  14. # Beginning of .REP section. Only executed if there is a .REP
  15. # packet waiting.
  16. repbegin
  17. # Wait for Wafmail prompt.
  18. expect ",h] ->"
  19. # Choose "Upload"
  20. send "U"
  21. # Wait for upload prompt.
  22. expect ".TXT)..."
  23. # Upload that puppy.
  24. upload
  25. # End of .REP section.
  26. repend
  27. # Wait for Wafmail prompt.
  28. expect ",h] ->"
  29. # Choose "Download".
  30. send "D"
  31. # Wait for "Send it? Yes, No, Hangup afterward" prompt.
  32. expect "[y,n,H] ->"
  33. # Choose hangup after transfer.
  34. send "H"
  35. # Download that puppy.
  36. download
  37. # Wait for "Press ENTER to hang up immediately"
  38. expect "up immediately."
  39. # Do it.
  40. send "\r"
  41.